package com.backend.springboot_project_demo.service;

import com.backend.springboot_project_demo.entity.Role;
import com.backend.springboot_project_demo.mappers.RoleMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class SearchRoleService {
    private @Resource RoleMapper roleMapper;

    public Role findById(String roleId) {
        return roleMapper.findById(roleId);
    }
}
